<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018\6\8 0008
  Time: 19:22
  To change this tsalarylate use File | Settings | File Tsalarylates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <jsp:include page="/static/common/common.jsp"></jsp:include>
    <script type="text/javascript" src="/static/js/salary.js"></script>
</head>
<body>
<%--此处必须设计为双标签,否则不能作为容器储存数据--%>
<table id="salary_grid"></table>
<div id="tb">

    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add'" onclick="opendialog()">新增薪资信息</a>
    <a href="#" id="editbtn" class="easyui-linkbutton" data-options="iconCls:'icon-edit'" onclick="edit()">编辑薪资信息</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-redo'" onclick="exportXls()">导出薪资信息</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-remove'" onclick="deletesalary()">删除信息</a>
    <input class="easyui-textbox" name="keyword" prompt="请输入姓名">
    <input class="easyui-combobox" name="deptId" prompt="请选择部门" data-options="panelHeight:'auto',valueField:'id',textField:'name',url:'/department/getAll.do'">
    开始时间
    <input class="easyui-datetimebox" name="startTime"
           data-options="showSeconds:false" style="width:150px">
    结束时间
    <input class="easyui-datetimebox" name="finalTime"
           data-options="showSeconds:false" style="width:150px">
    <a href="#" class="easyui-linkbutton" iconCls="icon-search" onclick="query()">搜索</a>
    <a href="#" class="easyui-linkbutton" iconCls="icon-reload" onclick="reload()">刷新</a>

</div>
<div id="form_btn">
    <a href="#" id="btn" class="easyui-linkbutton" iconCls="icon-save" onclick="save()">保存</a>
    <a href="#" class="easyui-linkbutton" iconCls="icon-cancel" onclick="cancel()">取消</a>

</div>
<div id="salary_dialog">
    <%--切记提交表单的方式--%>
    <form id="salary_form" method="post" data-url="/salary/saveOrUpdate.do">
        <input type="hidden" name="id"/>
        <table align="center" style="margin-top: 15px">

            <tr id="username">
                <td>员工姓名:</td>
                <td>
                    <input name="employee.id" class="easyui-combobox b"
                           data-options="panelHeight:'auto',valueField:'id',textField:'username',
                        url:'/employee/selectAll.do'
                        ">
                </td>
            </tr>
            <tr>
                <td >基本工资:&nbsp; </td>
                <td>
                    <input id="salary" name="salary" class="easyui-numberbox a">
                </td>
            </tr>
            <tr >
                <td>奖金:&nbsp; </td>
                <td>
                    <input id="bonus" name="bonus" class="easyui-numberbox a">
                </td>
            </tr>
            <tr >
                <td>扣薪:&nbsp; </td>
                <td>
                    <input id="cutsalary" name="cutsalary" class="easyui-numberbox a">
                </td>
            </tr>
            <tr>
                <td>计薪方式:</td>
                <td>
                    <input name="war" class="easyui-combobox b"
                           data-options="panelHeight:'auto',valueField:'value',textField:'label',
                                data:[{
                                    label: '月薪',
                                    value: '1'
                                }]">
                </td>
            </tr>
            <tr>
                <td>计税方式:</td>
                <td>
                    <input name="revenue" class="easyui-combobox b"
                           data-options="panelHeight:'auto',valueField:'value',textField:'label',
                                data:[{
                                    label: '税前',
                                    value: '1'
                                },{
                                    label: '税后',
                                    value: '0'
                                }]">
                </td>
            </tr>
            <tr>
                <td>是否缴纳基金:</td>
                <td>
                    <input name="fund" class="easyui-combobox b"
                           data-options="panelHeight:'auto',valueField:'value',textField:'label',
                                data:[{
                                    label: '是',
                                    value: '1'
                                },{
                                    label: '否',
                                    value: '0'
                                }]">
                </td>
            </tr>
        </tr>
            <tr>
                <td>领薪日:&nbsp; </td>
                <td>
                    <input name="paydate" class="easyui-datebox c">
                </td>
            </tr>
            <tr>
                <td>总薪资:&nbsp; </td>
                <td>
                    <input id="totalsalary" name="totalsalary" class="easyui-numberbox a">
                </td>
            </tr>

        </table>
    </form>
</body>
</html>
